package com.zhuimeng.second.controller;

import com.zhuimeng.second.service.SecondKillService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class PayController {
    @Autowired
    SecondKillService secondKillService;
    @GetMapping("/pay/{userId}")
    public String pay(@PathVariable String userId){
        return secondKillService.pay(userId);
    }
}
